import request from '@/utils/request'

// 查询审批流程模板列表
export const approvalTemplateList = (data) => {
    return request({
        url: '/system/attendanceRule/list',
        method: 'get',
        params: data
    })
}

// 查询模板内容
export const approvalTemplateDetail = (ruleId) => {
    return request({
        url: `/system/attendanceRule/getInfo`,
        method: 'get',
        params: {
            ruleId
        }
    })
}

// 编辑模板内容
export const approvalTemplateEdit = (data) => {
    return request({
        url: '/system/attendanceRule/edit',
        method: 'post',
        data
    })
}
